<select name="country" id="country" >
<?php
$conn = &ADONewConnection($dbType);
$conn->PConnect($dbServer, $dbUser, $dbPassword, $dbName);
$query = "select id_country, name from country";
$rs = $conn->Execute($query);
foreach ($rs as $row) {
  $selected = "";
  if ( $row[0] == $sessionUserCountry) {  
    $selected = 'selected="true"';
  }
  echo '<option value="'.$row[0].'" '.$selected.'>'.$row[1].'</option>';
}
?>
</select> 